home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(_root["2"] == 1)
- {
- if(!_root.land.back.hitTest(this._x + 10,this._y,true))
- {
- right = true;
- }
- else
- {
- right = false;
- }
- if(!_root.land.back.hitTest(this._x - 10,this._y,true))
- {
- left = true;
- }
- else
- {
- left = false;
- }
- if(!_root.land.back.hitTest(this._x,this._y + 10,true))
- {
- down = true;
- }
- else
- {
- down = false;
- }
- if(!_root.land.back.hitTest(this._x,this._y - 10,true))
- {
- up = true;
- }
- else
- {
- up = false;
- }
- if(Key.isDown(38) and up)
- {
- if(_root.land._y >= 8000)
- {
- if(_root.player._y >= 6.8)
- {
- _root.ros.gos.gotoAndPlay("away");
- _root["6"] = 2;
- _root.player._y -= schnell;
- this.gotoAndPlay("oben");
- }
- }
- if(_root.player._y >= 400 && _root.land <= 8000 && _root["6"] == 1)
- {
- _root.player._y -= schnell;
- this.gotoAndPlay("oben");
- _root.ros.gos.gotoAndPlay("away");
- }
- else if(_root.player._y <= 400 && _root.land._y <= 8000)
- {
- _root.land._y += schnall;
- _root.ober._y += schnall;
- this.gotoAndPlay("oben");
- _root.ros.gos.gotoAndPlay("away");
- }
- }
- if(Key.isDown(40) and down)
- {
- if(_root.player._y <= 560.2)
- {
- _root.player._y += schnell;
- this.gotoAndPlay("unten");
- }
- }
- if(Key.isDown(37) and left)
- {
- if(_root.player._x >= 5.25)
- {
- this._x -= rl;
- this.gotoAndPlay("links");
- }
- }
- if(Key.isDown(39) and right)
- {
- if(_root.player._x <= 443.25)
- {
- this._x += rl;
- this.gotoAndPlay("rechts");
- }
- }
- if(Key.isDown(38) and up && (Key.isDown(39) and right))
- {
- if(_root.land._y >= 8000)
- {
- _root.player._y -= v;
- _root.gos.gotoAndPlay("away");
- this.gotoAndPlay("schraegobenrechts");
- _root.schraegobenrechts.gotoAndPlay(2);
- }
- if(_root.player._y >= 400 && _root.land <= 8000)
- {
- this.gotoAndPlay("schraegobenrechts");
- _root.gos.gotoAndPlay("away");
- _root.schraegobenrechts.gotoAndPlay(2);
- _root.player._y -= v;
- }
- if(_root.player._y <= 400 && _root.land._y <= 8000)
- {
- this.gotoAndPlay("schraegobenrechts");
- _root.gos.gotoAndPlay("away");
- _root.schraegobenrechts.gotoAndPlay(2);
- _root.land._y -= hh;
- _root.ober._y -= hh;
- }
- }
- if(Key.isDown(38) and up && (Key.isDown(37) and left))
- {
- if(_root.land._y >= 8000)
- {
- _root.player._y -= v;
- this.gotoAndPlay("schraegobenlinks");
- _root.gos.gotoAndPlay("away");
- _root.schraegobenlinks.gotoAndPlay(2);
- }
- if(_root.player._y >= 400 && _root.land <= 8000)
- {
- this.gotoAndPlay("schraegobenlinks");
- _root.gos.gotoAndPlay("away");
- _root.schraegobenlinks.gotoAndPlay(2);
- _root.player._y -= v;
- }
- if(_root.player._y <= 400 && _root.land._y <= 8000)
- {
- this.gotoAndPlay("schraegobenlinks");
- _root.gos.gotoAndPlay("away");
- _root.schraegobenlinks.gotoAndPlay(2);
- _root.land._y -= hh;
- _root.ober._y -= hh;
- }
- }
- if(Key.isDown(40) and down && (Key.isDown(37) and left))
- {
- if(_root.player._y <= 560.2)
- {
- this.gotoAndPlay("schraeguntenlinks");
- _root.schraeguntenlinks.gotoAndPlay(2);
- _root.player._y += v;
- }
- }
- if(Key.isDown(40) and down && (Key.isDown(39) and right))
- {
- if(_root.player._y <= 560.2)
- {
- this.gotoAndPlay("schraeguntenrechts");
- _root.schraeguntenrechts.gotoAndPlay(2);
- _root.player._y += v;
- }
- }
- if(Key.isDown(65))
- {
- if(_root.board.ammunition >= 1)
- {
- if(_root["13"] == 1)
- {
- _root.schussound.gotoAndPlay(2);
- if(_root["12"] == 1)
- {
- _root.schussoben.play();
- }
- if(_root["12"] == 2)
- {
- _root.schussunten.play();
- }
- if(_root["12"] == 3)
- {
- _root.schussrechts.play();
- }
- if(_root["12"] == 4)
- {
- _root.schusslinks.play();
- }
- if(_root["12"] == 5)
- {
- _root.schussobenrechts.play();
- }
- if(_root["12"] == 6)
- {
- _root.schussobenlinks.play();
- }
- if(_root["12"] == 7)
- {
- _root.schussuntenrechts.play();
- }
- if(_root["12"] == 8)
- {
- _root.schussuntenlinks.play();
- }
- }
- }
- else if(_root.board.ammunition <= 0)
- {
- _root.reload.play();
- }
- }
- }
- }
-